package com.lei2j.dubbo.producer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

@SpringBootApplication
public class DubboProducerApplication {

    public static void main(String[] args) {

        SpringApplication springApplication = new SpringApplicationBuilder()
                //已非WEB方式启动
                .web(WebApplicationType.NONE)
                .sources(DubboProducerApplication.class)
                .build();
        springApplication.run(args);
    }

}
